<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

    <form:form commandName="formHeads" cssClass="form-horizontal" role="form" onsubmit="return false;">

        <div class="form-group" style="padding-left: 50px;">
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="checkAll" name="" value="">
                <label for="checkAll" class="no-padding">全选</label>
            </div>
        </div>

        <div class="form-group" style="padding-left: 50px;">
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="taskId" name="exportHead" value="taskId">
                <label for="taskId" class="no-padding">考核任务单号</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="checkType" name="exportHead" value="checkType">
                <label for="checkType" class="no-padding">考核类别</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="checkObject" name="exportHead" value="checkObject">
                <label for="checkObject" class="no-padding">考核对象</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="taskName" name="exportHead" value="taskName">
                <label for="taskName" class="no-padding">考核任务名</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="soucre" name="exportHead" value="soucre">
                <label for="soucre" class="no-padding">分数</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="rank" name="exportHead" value="rank">
                <label for="rank" class="no-padding">排名</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="taskContent" name="exportHead" value="taskContent">
                <label for="taskContent" class="no-padding">考核内容</label>
            </div>
            <div class="checkbox col-sm-2 ">
                <input type="checkbox" id="updDate" name="exportHead" value="updDate">
                <label for="updDate" class="no-padding">考核更新时间</label>
            </div>
        </div>
    </form:form>


<script>
    $(function () {
        $("#checkAll").click(function () {
            $("input[name='exportHead']").prop("checked", $(this).prop("checked"));
        });

    })
</script>



